package com.example.springevent.event.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.stereotype.Component;

import com.example.springevent.event.bo.IvdRemovedEventBO;

//@Component
public class IvdRemovedEventPoListener implements ApplicationListener<PayloadApplicationEvent<IvdRemovedEventBO>> {

	
	private static final Logger log = LoggerFactory.getLogger(IvdRemovedEventPoListener.class);

	@Override
	public void onApplicationEvent(PayloadApplicationEvent<IvdRemovedEventBO> event) {
		IvdRemovedEventBO ivd = event.getPayload();
		log.info("订单[{}]减少核销金额[{}]", ivd.getPoCode(), ivd.getVerifyAmt());
	}

}
